package com.hjb.service.impl.envelop;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.envelop.EnvelopInfoService;
import com.hjb.service.domain.envelopinfo.EnvelopInfo;
import com.hjb.service.domain.envelopinfo.EnvelopInfoExample;
import com.hjb.service.mapper.EnvelopInfoMapper;

@Service
public class EnvelopInfoServiceImpl implements EnvelopInfoService {

	private Logger log = LoggerFactory.getLogger(EnvelopInfoServiceImpl.class);
	
	@Autowired
	private EnvelopInfoMapper envelopInfoMapper;

	@Override
	public List<EnvelopInfo> selectByExample(EnvelopInfoExample example) {
		return envelopInfoMapper.selectByExample(example);
	}

	@Override
	public int insertEnvelopInfo(EnvelopInfo envelopInfo) {
		return envelopInfoMapper.insertSelective(envelopInfo);
	}

	@Override
	public void updateEnvelopInfo(EnvelopInfo envelopInfo) {
		envelopInfoMapper.updateByPrimaryKeySelective(envelopInfo);
	}
	
}
